﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="BuXiaChu.OrderDishes.Web.CallCenter.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link media="screen, projection" rel="stylesheet" type="text/css" href="/css/Blueprint/screen.css" />
    <link media="screen, projection" rel="stylesheet" type="text/css" href="/css/main.css" />

    <script type="text/javascript" src="js/Extend.js"></script>

    <script type="text/javascript" src="js/Common.js"></script>

    <script type="text/javascript" src="js/jquery-vsdoc.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="span-14 last" style="margin-top: 200px; margin-left: 200px;">
            <div class="editor">
                <div class="label">
                </div>
                <div class="field">
                    <span runat="server" id="p_Message" class="error">欢迎登录CC后台</span>
                </div>
                <div class="label">
                    登录名：
                </div>
                <div class="field">
                    <input type="text" runat="server" value="" id="txt_LoginName" />
                </div>
                <div class="label">
                    密码：
                </div>
                <div class="field">
                    <input type="password" runat="server" id="txt_Password" />
                </div>
                <div class="label">
                </div>
                <div class="field">
                    <input type="button" id="btn_Login" value="登录" />
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>

<script type="text/javascript">
    jDoc("txt_LoginName").value = "XiaoLi";
    jDoc("txt_Password").value = "123456";
    $(jDoc("btn_Login")).click(function() {
        if (jDoc("txt_LoginName").value.trim() == "") {
            alert("请输入登录名");
            return;
        }
        if (jDoc("txt_Password").value.trim() == "") {
            alert("请输入密码");
            return;
        }
        $(jDoc("form1")).submit();
    });

    $(document.body).bind("keypress",
            function() {
                var keyCode = jDoc.getEvent().keyCode;
                if (keyCode == 13) {
                    jDoc("btn_Login").click();
                }
            }
        );
</script>

